<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@ taglib  uri="http://java.sun.com/jsp/jstl/core"  prefix="c" %>  
<%@ taglib  uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn" %> 
<script type="text/javascript" src="<%=request.getContextPath() %>/My97DatePicker/WdatePicker.js"></script>
<link    rel="stylesheet"    href="<%=request.getContextPath() %>/css/index3.css"  type="text/css">
<script type="text/javascript"  src="<%=request.getContextPath() %>/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript"  src="<%=request.getContextPath() %>/js/jquery.validate.js"></script> 
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
/* $(function () {
	$.post("/findtype",{},function(data){
		JSON.stringify(data)
		for ( var i in data) {
			$("input[name='tid']").append("<option value='"+data[i].cid+"'>"+data[i].cname+"</option>")
		}
	})
})
 */
</script>
</head>
<body>

<form action="/add">
		<table>
			<tr>
				<td>
				植物名
				</td>
				<td><input type="text" name="zname"></td>
			</tr>
			<tr>
				<td>
				描述
				</td>
				<td><input type="text" name="miaoshu"></td>
			</tr>
			<tr>
				<td>
			科目
				</td>
				<td>
				<select name="tid">
				<option>请选择</option>
				<c:forEach items="${list }" var="c">
				<option value="${c.cid }" ></c:if>name }</option>
				</c:forEach>
				
				</select>
				
				</td>
			</tr>
			
			
			<tr>
				<td><input type="submit" value="添加" ></td>
			</tr>
		</table>

</form>
</body>
</html>